package org.absolutezero.shared;

import java.util.List;

import org.absolutezero.model.FridgeProduct;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(FridgeProduct.class)
public interface FridgeProductRequest extends RequestContext{
	
	InstanceRequest<FridgeProductProxy, Void> persist();
	
	InstanceRequest<FridgeProductProxy, Void> remove();
	
	Request<List<FridgeProductProxy>> getShelfProducts(Long shelfId);
}
